package com.education.controller.backend;

import com.education.annotation.AuthorityAnnotation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author 林心晨
 * @Title:
 * @Package
 * @Description:
 * @date create in 5.10  18:20
 */
@Controller
@RequestMapping("/admin/")
@AuthorityAnnotation(authority = 1)
public class AdminController {

    @RequestMapping(value = "recycle",method = RequestMethod.GET)
    public ModelAndView userRecycle(ModelAndView model){
        model.setViewName("user-recycle");
        return model ;
    }

    @RequestMapping(value = "list",method = RequestMethod.GET)
    public ModelAndView userList(ModelAndView model){
        model.setViewName("user-list");
        return model ;
    }


}
